<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j" 
	xmlns:rich="http://richfaces.org/rich"	
	xmlns:fn="http://java.sun.com/jsp/jstl/functions" >

<body>
	<ui:composition template="/template/template.xhtml">
		<ui:define name="body">
			<h:form onkeypress="if (event.keyCode == 13) return false;">

				<rich:notifyMessages stayTime="2000" nonblocking="true" />
												
					<rich:panel header="#{msg.search}">
						<table>
							<tr>
								<td><h:outputText value="#{msg.building_name}" styleClass="outputText" style="font-size: 16px;" /></td>
								<td>
									<h:selectOneMenu id="search_building_name" styleClass="selectClass" 
										value="#{scheduleManageBean.selectedBuildingId}" 
										valueChangeListener="#{scheduleManageBean.buildingValueChanged}">

										<f:selectItems value="#{scheduleManageBean.buildingOptions}" />
										<a4j:ajax event="valueChange" render="search_floor_name,search_room_name,search_machine_name" execute="@this" />

									</h:selectOneMenu>
									<h:outputText value="&#160;" />
									<h:outputText value="&#160;" />
									<h:outputText value="&#160;" />
								</td>	
																						

								<td><h:outputText value="#{msg.floor_name}" styleClass="outputText" style="font-size: 16px;" /></td>
								<td>
									<h:selectOneMenu id="search_floor_name" styleClass="selectClass" 
										value="#{scheduleManageBean.selectedFloorId}" 
										valueChangeListener="#{scheduleManageBean.floorValueChanged}">

										<f:selectItems value="#{scheduleManageBean.floorOptions}" />
										<a4j:ajax event="valueChange" render="search_room_name,search_machine_name" execute="@this" />
									</h:selectOneMenu>
								</td>
								
							</tr>

							<tr>
								<td><h:outputText value="#{msg.room_name}" styleClass="outputText" style="font-size: 16px;" /></td>
								<td><h:selectOneMenu id="search_room_name" styleClass="selectClass" 
									value="#{scheduleManageBean.selectedRoomId}" 
									valueChangeListener="#{scheduleManageBean.roomValueChanged}">

										<f:selectItems value="#{scheduleManageBean.roomOptions}" />
										<a4j:ajax event="valueChange" render="search_machine_name" execute="@this" />

									</h:selectOneMenu>
									<h:outputText value="&#160;" />
									<h:outputText value="&#160;" />
									<h:outputText value="&#160;" />
								</td>								

								<td><h:outputText value="#{msg.machine_name}" styleClass="outputText" style="font-size: 16px;" /></td>
								<td><h:selectOneMenu id="search_machine_name" styleClass="selectClass" value="#{scheduleManageBean.selectedMachineId}">

										<f:selectItems value="#{scheduleManageBean.machineOptions}" />
									</h:selectOneMenu>
								</td>
								
							</tr>

							<tr>
								<td colspan="4" align="right">
									<a4j:commandButton styleClass="buttonClass" style="font-size: 16px;" 
										value="#{msg.search}" 
										action="#{scheduleManageBean.searchDetail}" 
										render="@form" />
								</td>

							</tr>
						</table>
					</rich:panel>	
					
					<br />	
					
					<rich:panel header="#{msg.schedule_control}" rendered="#{scheduleManageBean.status == 'CONTROL'}">
																							
						 <rich:dataGrid id="schedulePanel"  value="#{scheduleManageBean.selectedMachines}" var="machine" columns="1" elements="1" width="800px" border="0">
						 							 
								
						 	<rich:panel header="#{machine.room.roomName} - #{machine.machineName}" style="font-size: 16px;">
						 	
						 		<a4j:commandLink id="createPane_btn" value="#{msg.create}"
						 			action="#{scheduleManageBean.newItem}"
									styleClass="buttonClass" style="font-size: 16px;"
									execute="@this" render="createPane"
									oncomplete="#{rich:component('createPane')}.show();" >
									
									<a4j:param value="#{machine.machineId}" assignTo="#{scheduleManageBean.selectedMachineId}" />	
																											
									
									
								</a4j:commandLink>		
																
						 		
						 		<rich:extendedDataTable id="dataTable" width="100%" rows="15" frozenColumns="1"
									value="#{scheduleManageBean.machineMap[machine]}" var="scheduleTerm" iterationStatusVar="it">
									
									<rich:column width="33px" style="text-align: center;">
										<f:facet name="header">
							                <h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.index_logo}" />
							            </f:facet>						 
										<h:outputText value="#{it.index + 1}" />						
									</rich:column>
									
									<rich:column width="80px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.time}" />											
							            </f:facet>		
										<h:outputText value="#{scheduleTerm.scheduleHour}"  />
										<h:outputText value=":" />
										<h:outputText value="#{scheduleTerm.scheduleMin}" />
									</rich:column>		
									
									<rich:column width="70px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.start_option}" />											
							            </f:facet>		
										<h:outputText value="#{msg.start_on}" rendered="#{scheduleTerm.start}" />
										<h:outputText value="#{msg.start_off}" rendered="#{!scheduleTerm.start}" />										
									</rich:column>
									
									<rich:column width="70px" style="text-align: center;" >										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.fan_speed}" />											
							            </f:facet>		
										<h:outputText value="#{msg.fan_speed_auto}" rendered="#{scheduleTerm.fanSpeed == 0}" />
										<h:outputText value="#{msg.fan_speed_high}" rendered="#{scheduleTerm.fanSpeed == 1}" />
										<h:outputText value="#{msg.fan_speed_mid}" rendered="#{scheduleTerm.fanSpeed == 2}" />
										<h:outputText value="#{msg.fan_speed_low}" rendered="#{scheduleTerm.fanSpeed == 3}" />			
																								
									</rich:column>
									
									<rich:column width="80px" style="text-align: center;" >										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.temperature}(#{msg.celsius})" />											
							            </f:facet>		
							            <h:outputText value="#{scheduleTerm.temperature}"/>							            							          
							            																																		
									</rich:column>
									
									<rich:column width="80px" style="text-align: center;" >										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.minimum_temperature}(#{msg.celsius})" />											
							            </f:facet>		
							            <h:outputText value="#{scheduleTerm.minimumTemperature}"/>							            							          
							            																																		
									</rich:column>
									
									<rich:column width="70px" style="text-align: center;" >										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.key_lock}" />											
							            </f:facet>		
							            <h:outputText value="#{msg.key_lock_no_lock}" rendered="#{scheduleTerm.keyLock == 0}" />		
											<h:outputText value="#{msg.key_lock_fan_speed_only}" rendered="#{scheduleTerm.keyLock == 1}" />							            							          
							            																																		
									</rich:column>
									
									<rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.status}" />											
							            </f:facet>		
										<h:outputText value="Y" rendered="#{scheduleTerm.active}" />
										<h:outputText value="N" rendered="#{!scheduleTerm.active}" />										
									</rich:column>
									
									<rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.monday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execMon}" disabled="true"/>
							        </rich:column>	
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.tuesday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execTue}" disabled="true"/>
							        </rich:column>
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.wednesday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execWed}" disabled="true"/>
							        </rich:column>
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.thusday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execThu}" disabled="true"/>
							        </rich:column>
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.friday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execFri}" disabled="true"/>
							        </rich:column>
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.saturday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execSat}" disabled="true"/>
							        </rich:column>
							        
							        <rich:column width="50px" style="text-align: center;">										
										<f:facet name="header">			                							                						                
											<h:outputText style="color:#FFFFFF" styleClass="tableTitle" value="#{msg.sunday}" />											
							            </f:facet>		
							            <h:selectBooleanCheckbox value="#{scheduleTerm.execSun}" disabled="true"/>
							        </rich:column>		
							        
							         <rich:column width="50px">
									 	<f:facet name="header">
							                <h:outputText value="#{msg.edit}" />
							            </f:facet>	
						                <a4j:commandLink style="border:none;" execute="@this" render="@none"
											oncomplete="#{rich:component('deletePane')}.show()">		                    
						                    <h:graphicImage library="images" name="icons/delete.gif" alt="delete" />
						                    <a4j:param value="#{scheduleTerm.id}" assignTo="#{scheduleManageBean.selectedScheduleTermId}" />
						                </a4j:commandLink>
						                
						                
						                <a4j:commandLink style="border:none;" render="editPane" execute="@this"
						                	action="#{scheduleManageBean.selectItem}"
						                    oncomplete="#{rich:component('editPane')}.show()">		                    
						                    <h:graphicImage library="images" name="icons/edit.gif" alt="edit" />
						                    <a4j:param value="#{scheduleTerm.id}" assignTo="#{scheduleManageBean.selectedScheduleTermId}" />
						                    
						                </a4j:commandLink>
						                						                
						            </rich:column>						
									
								</rich:extendedDataTable>				
						 							 	
		                    </rich:panel>	
		                    
		                     <f:facet name="footer">
			                    <rich:dataScroller maxPages="10"/>
			                </f:facet>	                    		                   
						 </rich:dataGrid>	
						 												
												
					</rich:panel>					

				<a4j:jsFunction name="remove" action="#{scheduleManageBean.remove}" 
					render="schedulePanel" execute="@this"
            		oncomplete="#{rich:component('deletePane')}.hide();" />
            		
				<rich:popupPanel id="deletePane" autosized="true">
					<f:facet name="header">
            			<h:outputText value="#{msg.delete}" />
        			</f:facet>
					<h:outputText value="#{msg.delete_confirm_message}" styleClass="inputText" style="font-size: 16px;" />		            
		            <a4j:commandButton styleClass="buttonClass" style="font-size: 16px;" 
		            	value="#{msg.cancel}" onclick="#{rich:component('deletePane')}.hide(); return false;" />
		            <a4j:commandButton styleClass="buttonClass" style="font-size: 16px;"
		            	value="#{msg.delete}" onclick="remove(); return false;" />
		        </rich:popupPanel>			
								
		        <rich:popupPanel header="#{msg.edit}" id="editPane"  width="450" height="420" 
		        	autosized="true" domElementAttachment="parent">
		        	
		        	<f:facet name="controls">
			            <h:outputLink value="#" onclick="#{rich:component('editPane')}.hide(); return false;" styleClass="inputText">			                
			                X
			            </h:outputLink>
			        </f:facet>
		        	
		        	<table>
						<tr>
							<td>
								<h:outputText value="#{msg.time}" styleClass="outputText" style="font-size: 16px;"/>
								<h:outputText value="&#160;" />	
							</td>
							<td>
								<h:selectOneMenu styleClass="short_selectClass2"			                			
									value="#{scheduleManageBean.editItem.scheduleHour}" >	
									<f:selectItems value="#{scheduleManageBean.hourOptions}" />														
								</h:selectOneMenu>	
								<h:outputText value=":" styleClass="outputText" style="font-size: 16px;"/>
								<h:selectOneMenu styleClass="short_selectClass2"			                			
									value="#{scheduleManageBean.editItem.scheduleMin}" >	
									<f:selectItems value="#{scheduleManageBean.minuteOptions}" />														
								</h:selectOneMenu>
							</td>
						</tr>
																	
						<tr>
							<td>
								<h:outputText value="#{msg.start_option}" styleClass="outputText" style="font-size: 16px;" />
								<h:outputText value="&#160;" />	
							</td>
							<td>
								<h:selectOneMenu 
									styleClass="selectClass" value="#{scheduleManageBean.editItem.start}" >									
									<f:selectItem itemLabel="#{msg.start_on}" itemValue="#{true}" />
									<f:selectItem itemLabel="#{msg.start_off}" itemValue="#{false}" />
								</h:selectOneMenu>
							</td>
						</tr>

						<tr>

							<td><h:outputText value="#{msg.fan_speed}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>


							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.fanSpeed}">
									<f:selectItem itemLabel="#{msg.fan_speed_auto}" itemValue="#{0}" />
									<f:selectItem itemLabel="#{msg.fan_speed_high}" itemValue="#{1}" />
									<f:selectItem itemLabel="#{msg.fan_speed_mid}" itemValue="#{2}" />
									<f:selectItem itemLabel="#{msg.fan_speed_low}" itemValue="#{3}" />

								</h:selectOneMenu></td>

						</tr>

						<tr>
							<td><h:outputText value="#{msg.temperature}(#{msg.celsius})" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.temperature}">
									<f:selectItems value="#{scheduleManageBean.temperatureOptions}" />
								</h:selectOneMenu></td>
						</tr>

						<tr>
							<td><h:outputText value="#{msg.minimum_temperature}(#{msg.celsius})" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.minimumTemperature}">
									<f:selectItems value="#{scheduleManageBean.minimumTemperatureOptions}" />
								</h:selectOneMenu></td>
						</tr>
						
						<tr>
							<td><h:outputText value="#{msg.key_lock}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td>
								<h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.keyLock}" >									
									<f:selectItem itemLabel="#{msg.key_lock_no_lock}" itemValue="#{0}" />
									<f:selectItem itemLabel="#{msg.key_lock_fan_speed_only}" itemValue="#{1}" />									
								</h:selectOneMenu>	
							</td>
						</tr>

						<tr>
							<td><h:outputText value="#{msg.status}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.active}">
									<f:selectItem itemLabel="Y" itemValue="#{true}" />
									<f:selectItem itemLabel="N" itemValue="#{false}" />
								</h:selectOneMenu></td>
						</tr>

						<tr>
							<td><h:outputText value="#{msg.schedule}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td>#{msg.monday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execMon}" /> #{msg.tuesday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execTue}" />
								#{msg.wednesday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execWed}" />
							</td>
						</tr>

						<tr>
							<td></td>
							<td>#{msg.thusday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execThu}" /> #{msg.friday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execFri}" />
								#{msg.saturday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execSat}" />
							</td>
						</tr>

						<tr>
							<td></td>
							<td>#{msg.sunday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execSun}" />
							</td>
						</tr>
						
						<tr>
							<td colspan="2" align="right">
								<a4j:commandButton styleClass="buttonClass" style="font-size: 16px;" 
									value="#{msg.save}" action="#{scheduleManageBean.update}" render="schedulePanel,editPane" execute="editPane"
		                			oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editPane')}.hide();}" />
		            			<a4j:commandButton styleClass="buttonClass" style="font-size: 16px;" 
		            				value="#{msg.cancel}" onclick="#{rich:component('editPane')}.hide(); return false;" />
							</td>						
						</tr>
						
					</table>
						
				</rich:popupPanel>
				
				 <rich:popupPanel header="#{msg.create}" id="createPane"  width="450" height="420" 
		        	autosized="true" domElementAttachment="parent">
		        	
		        	<f:facet name="controls">
			            <h:outputLink value="#" onclick="#{rich:component('createPane')}.hide(); return false;" styleClass="inputText">			                
			                X
			            </h:outputLink>
			        </f:facet>
		        	
		        	<table>
						<tr>
							<td>
								<h:outputText value="#{msg.time}" styleClass="outputText" style="font-size: 16px;"/>
								<h:outputText value="&#160;" />	
							</td>
							<td>
								<h:selectOneMenu styleClass="short_selectClass2"			                			
									value="#{scheduleManageBean.editItem.scheduleHour}" >	
									<f:selectItems value="#{scheduleManageBean.hourOptions}" />														
								</h:selectOneMenu>	
								<h:outputText value=":" styleClass="outputText" style="font-size: 16px;"/>
								<h:selectOneMenu styleClass="short_selectClass2"			                			
									value="#{scheduleManageBean.editItem.scheduleMin}" >	
									<f:selectItems value="#{scheduleManageBean.minuteOptions}" />														
								</h:selectOneMenu>
							</td>
						</tr>
																	
						<tr>
							<td>
								<h:outputText value="#{msg.start_option}" styleClass="outputText" style="font-size: 16px;" />
								<h:outputText value="&#160;" />	
							</td>
							<td>
								<h:selectOneMenu 
									styleClass="selectClass" value="#{scheduleManageBean.editItem.start}" >									
									<f:selectItem itemLabel="#{msg.start_on}" itemValue="#{true}" />
									<f:selectItem itemLabel="#{msg.start_off}" itemValue="#{false}" />
								</h:selectOneMenu>
							</td>
						</tr>

						<tr>

							<td><h:outputText value="#{msg.fan_speed}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>


							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.fanSpeed}">
									<f:selectItem itemLabel="#{msg.fan_speed_auto}" itemValue="#{0}" />
									<f:selectItem itemLabel="#{msg.fan_speed_high}" itemValue="#{1}" />
									<f:selectItem itemLabel="#{msg.fan_speed_mid}" itemValue="#{2}" />
									<f:selectItem itemLabel="#{msg.fan_speed_low}" itemValue="#{3}" />

								</h:selectOneMenu></td>

						</tr>

						<tr>
							<td><h:outputText value="#{msg.temperature}(#{msg.celsius})" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.temperature}">
									<f:selectItems value="#{scheduleManageBean.temperatureOptions}" />
								</h:selectOneMenu></td>
						</tr>

						<tr>
							<td><h:outputText value="#{msg.minimum_temperature}(#{msg.celsius})" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.minimumTemperature}">
									<f:selectItems value="#{scheduleManageBean.minimumTemperatureOptions}" />
								</h:selectOneMenu></td>
						</tr>
						
						<tr>
							<td><h:outputText value="#{msg.key_lock}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td>
								<h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.keyLock}" >									
									<f:selectItem itemLabel="#{msg.key_lock_no_lock}" itemValue="#{0}" />
									<f:selectItem itemLabel="#{msg.key_lock_fan_speed_only}" itemValue="#{1}" />									
								</h:selectOneMenu>	
							</td>
						</tr>


						<tr>
							<td><h:outputText value="#{msg.status}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td><h:selectOneMenu styleClass="selectClass" value="#{scheduleManageBean.editItem.active}">
									<f:selectItem itemLabel="Y" itemValue="#{true}" />
									<f:selectItem itemLabel="N" itemValue="#{false}" />
								</h:selectOneMenu></td>
						</tr>

						<tr>
							<td><h:outputText value="#{msg.schedule}" styleClass="outputText" style="font-size: 16px;" /> <h:outputText value="&#160;" /></td>
							<td>#{msg.monday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execMon}" /> #{msg.tuesday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execTue}" />
								#{msg.wednesday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execWed}" />
							</td>
						</tr>

						<tr>
							<td></td>
							<td>#{msg.thusday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execThu}" /> #{msg.friday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execFri}" />
								#{msg.saturday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execSat}" />
							</td>
						</tr>

						<tr>
							<td></td>
							<td>#{msg.sunday}<h:selectBooleanCheckbox value="#{scheduleManageBean.editItem.execSun}" />
							</td>
						</tr>
						
						<tr>
							<td colspan="2" align="right">
								<a4j:commandButton styleClass="buttonClass" style="font-size: 16px;"
									value="#{msg.create}" action="#{scheduleManageBean.create}" render="schedulePanel,search_machine_name" execute="createPane"
		                			oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('createPane')}.hide();}" />
		            			<a4j:commandButton styleClass="buttonClass" style="font-size: 16px;"
		            				value="#{msg.cancel}" onclick="#{rich:component('createPane')}.hide(); return false;" />
							</td>	
							<td></td>					
						</tr>
						
					</table>
						
				</rich:popupPanel>

			</h:form>

		</ui:define>
	</ui:composition>
</body>
</html>
